package org.example.fault.retry;

import org.example.spi.SpiLoader;

/**
 * @Description: TODO
 * @Author: sats@jz
 * @Date: 2025/3/4 11:09
 **/
public class RetryStrategyFactory {
    static {
        SpiLoader.load(RetryStrategy.class);
    }
    // 默认
    private static  final RetryStrategy DEFAULT_RETRY_STRATEGY = new NoRetryStrategy();


    public static RetryStrategy getRetryStrategy(String retryStrategyName)
    {
        return SpiLoader.getInstance(RetryStrategy.class, retryStrategyName);
    }
}
